<?php
	
	
	$error = $_GET['error'];
	
	
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html;" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		
		<link href="../css/style.css" rel="stylesheet" type="text/css" />
			
		<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" />
		<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
		<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
	
		<script src="../lib/pathways.js"></script>
		
		<title>Pathways - Login</title>
	
	</head>

	<body>
	
			<div data-role="header" data-theme="b">
			  <h1>Login</h1>
			</div>
		
			<div id="container" data-role="page">
			
				<div id="main" data-role="content">
					<center><b id="error" style="color: red;"><?php echo ($error ? $error : "") ; ?></b></center>
					
				
					<form action="../appcontroller.php?cmd=login" method="post">
					
						<table width="60%" style="margin: auto;">
							<tr>
								<td>
									<label for="username" class="lbl">Username :</label>
									<input id="username" class="field" type="text" name="username"  />
								</td>
								
							</tr>
							
							<tr>
								<td>
									<label for="password" class="lbl">Password :</label>
									<input id="password" class="field" type="password" name="password" />
								</td>
							</tr>
							
						</table>
						
						
						<table width="60%" style="margin: auto;">
							<tr>
								<td width="50%">
								</td>
								<td>
									<input id="btn_login" type="button" onclick="login();" value=" Login "/><br />
								</td>
							</tr>
						</table>
						
						<table width="60%" style="margin: auto;">
							<tr>
								<td>
									<label class="lbl">Non sei ancora registrato?</label>
									<a href="#" onclick="openRegistra();" class="ui-btn-right">Registrati</a>
								</td>
								
							</tr>
							
						</table>
						
					</form>
					
				
				</div>
				
				
				<div id="footer">
					
				</div>
				
					
				<div id="footerend"></div>
				
			</div>
			
			
		
	</body>

</html>
